package com.gengzi.item.api;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author 董诗攀
 */
@RequestMapping("category")
public interface CategoryApi {

    /**
     * 根据商品分类id，查询商品分类名称
     * @param ids 商品分类id数组
     * @return 商品分类名称list
     */
    @GetMapping("names")
     List<String> queryNamesByIds(@RequestParam("ids") List<Long> ids);
}
